package com.lty.mp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lty.mp.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LTY
 */
@Repository
public interface UserDao extends BaseMapper<User> {
    /**
     * 自定义分页查询count
     * @return 条数
     */
    Integer countPageVo();

    /**
     * 自定义分页查询list
     * @param page 分页
     * @return list
     */
    List<User> selectPageVo(Page page);

}
